home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Include / include_i / prefs / printertxt.i < prev    next >
Encoding:
Text File  |  1999-10-19  |  2.5 KB  |  101 lines

  1.     IFND    PREFS_PRINTERTXT_I
  2. PREFS_PRINTERTXT_I    SET    1
  3. **
  4. **    $VER: printertxt.i 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **    File format for text printer preferences
  8. **
  9. **    (C) Copyright 1991-1992 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. **
  12.  
  13. ;---------------------------------------------------------------------------
  14.  
  15.     IFND EXEC_TYPES_I
  16.     INCLUDE "exec/types.i"
  17.     ENDC
  18.  
  19. ;---------------------------------------------------------------------------
  20.  
  21. ID_PTXT equ "PTXT"
  22. ID_PUNT equ "PUNT"
  23. ID_PDEV equ "PDEV"
  24.  
  25.  
  26. DRIVERNAMESIZE equ 30    ; Filename size
  27. DEVICENAMESIZE equ 32    ; .device name size
  28. UNITNAMESIZE   equ 32
  29.  
  30.  
  31.    STRUCTURE PrinterTxtPrefs,0
  32.     STRUCT pt_Reserved,4*4        ; System reserved
  33.     STRUCT pt_Driver,DRIVERNAMESIZE    ; printer driver filename
  34.     UBYTE  pt_Port            ; printer port connection
  35.  
  36.     UWORD  pt_PaperType
  37.     UWORD  pt_PaperSize
  38.     UWORD  pt_PaperLength        ; Paper length in # of lines
  39.  
  40.     UWORD  pt_Pitch
  41.     UWORD  pt_Spacing
  42.     UWORD  pt_LeftMargin        ; Left margin
  43.     UWORD  pt_RightMargin        ; Right margin
  44.     UWORD  pt_Quality
  45.    LABEL PrinterTxtPrefs_SIZEOF
  46.  
  47. ; constants for PrinterTxtPrefs.pt_Port
  48. PP_PARALLEL equ 0
  49. PP_SERIAL   equ 1
  50.  
  51. ; constants for PrinterTxtPrefs.pt_PaperType
  52. PT_FANFOLD  equ 0
  53. PT_SINGLE   equ 1
  54.  
  55. ; constants for PrinterTxtPrefs.pt_PaperSize
  56. PS_US_LETTER    equ 0
  57. PS_US_LEGAL    equ 1
  58. PS_N_TRACTOR    equ 2
  59. PS_W_TRACTOR    equ 3
  60. PS_CUSTOM    equ 4
  61. PS_EURO_A0    equ 5        ; European size A0: 841 x 1189
  62. PS_EURO_A1    equ 6        ; European size A1: 594 x 841
  63. PS_EURO_A2    equ 7        ; European size A2: 420 x 594
  64. PS_EURO_A3    equ 8        ; European size A3: 297 x 420
  65. PS_EURO_A4    equ 9        ; European size A4: 210 x 297
  66. PS_EURO_A5    equ 10        ; European size A5: 148 x 210
  67. PS_EURO_A6    equ 11        ; European size A6: 105 x 148
  68. PS_EURO_A7    equ 12        ; European size A7: 74 x 105
  69. PS_EURO_A8    equ 13        ; European size A8: 52 x 74
  70.  
  71. ; constants for PrinterTxtPrefs.pt_PrintPitch
  72. PP_PICA     equ 0
  73. PP_ELITE equ 1
  74. PP_FINE     equ 2
  75.  
  76. ; constants for PrinterTxtPrefs.pt_PrintSpacing
  77. PS_SIX_LPI   equ 0
  78. PS_EIGHT_LPI equ 1
  79.  
  80. ; constants for PrinterTxtPrefs.pt_PrintQuality
  81. PQ_DRAFT  equ 0
  82. PQ_LETTER equ 1
  83.  
  84.  
  85.    STRUCTURE PrinterUnitPrefs,0
  86.     LONG   pu_Reserved,4*4             ; System reserved
  87.     LONG   pu_UnitNum             ; Unit number for OpenDevice()
  88.     ULONG  pu_OpenDeviceFlags         ; Flags for OpenDevice()
  89.     STRUCT pu_DeviceName,DEVICENAMESIZE  ; Name for OpenDevice()
  90.    LABEL PrinterUnitPrefs_SIZEOF
  91.  
  92.    STRUCTURE PrinterDeviceUnitPrefs,0
  93.     LONG   pdu_Reserved,4*4
  94.     LONG   pdu_UnitNum
  95.     STRUCT pdu_UnitName,UNITNAMESIZE
  96.    LABEL PrinterDeviceUnitPrefs_SIZEOF
  97.  
  98. ;---------------------------------------------------------------------------
  99.  
  100.     ENDC    ; PREFS_PRINTERTXT_I
  101.